<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户注册</title>
    <script src="https://cdn.bootcss.com/jquery/3.0.0/jquery.min.js"></script>
    <script src="resource/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="resource/css/bootstrap.min.css">
    <script src="sms/bmob-min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://cdn.bootcss.com/vue-resource/1.5.1/vue-resource.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.js"></script>

    <style type="text/css">
        body {
            margin: 0;
            padding: 0;
        }

        .head-logo {
            height: 140px;
        }

        .head-inner {
            position: relative;
            width: 1000px;
            height: 140px;
            margin: 0 auto;
        }

        .header-logo {
            position: absolute;
            left: 0;
            top: 0;
            height: 80px;
            margin: 30px;
        }

        .header-search {
            width: 340px;
            height: 32px;
            border: none;
            float: right;
            margin-top: 33px;
            display: inline;
        }

        .search-form {
            position: relative;
            width: 310px;
            height: 32px;
            border-radius: 3px;
            border: 1px solid black;
            margin-top: 20px;
        }

        .header-search-input {
            padding: 2px 15px;
            width: 233px;
            height: 28px;
            line-height: 30px;
            font-size: 14px;
            color: #333;
            border: none;
            outline: none;
            border-radius: 3px;
            display: inline-block;
        }

        .header-search-button {
            position: absolute;
            top: 0;
            right: 0;
            width: 47px;
            height: 24px;
            padding-top: 8px;
            text-align: center;
            display: inline-block;
        }

        .header-search-icon {
            width: 17px;
            height: 17px;
            background-image: url("img/search.png");
            display: inline-block;

        }

        .c-body {
            background: skyblue no-repeat top center;
        }

        .c-content {
            margin-right: auto;
            margin-left: auto;
            padding: 50px 20px;
            min-height: 550px;
            width: 1000px;
        }

        .c-summer {
            width: 500px;
            float: left;
            margin-top: 30px;
        }

        .c-login-panel {
            width: 360px;
            border-radius: 2px;
            background-color: #fff;
        }

        .f-right {
            float: right;
        }

        .tab {
            border-bottom: 1px solid #e0e0e0;
            width: 360px;
        }

        .c-tab-nav-item {
            display: inline-block;
            width: 260px;
            text-align: left;
            font-size: 17px;
            color: #2f5e8d;
            font-weight: 700;
            line-height: 50px;
            padding-left: 30px;
        }

        .c-login {
            width: 100px;
            color: #f6007d;
            text-align: right;
            margin: auto;
        }

        .form {
            margin-top: 25px;
            margin-left: auto;
            margin-right: auto;
            width: 300px;
        }

        .c-input {
            width: 100%;
            height: 40px;
        }

        .c-input-v {
            float: left;
            width: 140px;
            height: 40px;
        }

        .btn-login {
            width: 300px;
            height: 40px;
            margin-bottom: 30px;
        }

        .btn-v {
            float: right;
            width: 140px;
            height: 40px;
            color: #f6007d;
        }

        .margin-bottom {
            margin-bottom: 20px;
        }

        .alert-wrong {
            background-color: #f2dddd;
            color: #853838;
            padding: 10px;
            text-align: center;
        }
    </style>

</head>
<body>
<div class="head-logo">
    <div class="head-inner">
        <!--logo-->
        <div class="header-logo">
            <a href="index.html"><img src="img/logo_deepblue.png" alt="乐鲜生活" height="80px"/></a>
        </div>
        <div class="header-search">
            <!--搜索框-->
            <div class="search-form">
                <input type="text" name="search-content" class="header-search-input" maxlength="100" placeholder="搜一哈你想搜的内容"  />
                <a href="searchResult.html" class="header-search-button">
                    <span class="header-search-icon"></span>
                </a>
            </div>
        </div>
    </div>
</div>
<div class="c-body">
    <div class="c-content">
        <div class="c-summer">
            <img src="img/summer.jpg" alt="LeGo">
        </div>
        <div class="c-login-panel f-right" id="app-register">
            <div class="tab">
                <div class="c-tab-nav-item">用户注册</div>
                <a href="login.html" class="c-login">直接登录</a>
            </div>
            <div class="alert-wrong" v-show="showAlertMsg">{{ alertMsg }}</div>
            <div class="form">
                <div class="form-horizontal">
                    <input type="tel" class="form-control c-input margin-bottom" v-model="phone" placeholder="手机号" maxlength="11" @change="checkPhone">
                    <div>
                        <input type="tel" class="form-control c-input-v margin-bottom" v-model="vft_code" placeholder="短信验证码" maxlength="6" @change="checkVft">
                        <button type="button" class="btn btn-default btn-v margin-bottom" id="btn" @click="getSMSCode">{{ btn_vft }}</button>
                    </div>
                    <input type="text" class="form-control c-input margin-bottom" v-model="nickname" placeholder="昵称（不超过16个字符）" maxlength="16">
                    <input type="text" class="form-control c-input margin-bottom" v-model="password" placeholder="密码由不超过20位的数字，字母和符号组合" maxlength="20">
                    <input type="text" class="form-control c-input margin-bottom" v-model="passwordAgain" placeholder="请再次输入密码" maxlength="20" @change="checkPwd">
                    <button class="btn btn-primary btn-login" @click="register">注册</button>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="js/register.js"></script>
</body>
</html>